package com.ken.astroboy.quartz;

import java.io.IOException;

import com.ken.astroboy.logic.LogicProcess;
import com.ken.astroboy.model.ScheduledTaskCustomData;
import com.ken.astroboy.model.WebWxGetContactResponse;
import com.ken.astroboy.service.WxService;

public class SyncFriendInfoJob extends AbstractJob{

	@Override
	void doJob(ScheduledTaskCustomData customData) throws IOException {
		
		long seq = 0;		
		
		do{
			WebWxGetContactResponse response = WxService.getContact(seq);
			LogicProcess.handleGetContactResponse(response);
			seq = response.getSeq();			
		}while(seq != 0);	
	}
}
